<?php
echo $this->Session->flash();
?>
<table border="1" id="tabla">
    <thead>
        <tr>
            <th>Código</th>
            <th>Nombre</th>
            <th>Matrícula</th>
            <th>Departamento</th>
            <th>Municipio</th>
            <th>Oficina de instrumentos públicos</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($predios as $prop): ?>
            <tr>
                <td><?php echo $prop['Property']['codigo'] ?></td>
                <td><?php echo $prop['Property']['nombre'] ?></td>
                <td><?php echo $prop['Property']['matricula'] ?></td>
                <td><?php echo $prop['Departament']['name'] ?></td>
                <td><?php echo $prop['City']['name'] ?></td>
                <td><?php echo $prop['Property']['oficina_instrumentos'] ?></td>
                <td>
                    <?php
                    echo $ajax->link('Revisiones', array('controller' => 'PropertyFinalReviews', 'action' => 'index', $prop['Property']['id']), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading'));
                    ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
